tag @s add say
team join red @s
playsound minecraft:block.note_block.hat master @s ~ ~ ~